<{include file="header.html"}>
<{include file="top.html"}>
<div class="h_980 clearfix">
            <div class="FosfMain">
            <div class="page_dh"><a class="location-home" href="<{spUrl c=main a=index}>"></a> <{T w='Login'}> <{T w='NavigationJGF'}><{T w='Password Reset'}> </div>
            <script language="javascript" type="text/javascript"><!--
            var selected;
            
            
            var form = "";
            var submitted = false;
            var error = false;
            var error_message = "";
            
            function check_input(field_name, field_size, message) {
              if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
                if (field_size == 0) return;
                var field_value = form.elements[field_name].value;
            
                if (field_value == '' || field_value.length < field_size) {
                  error_message = error_message + "* " + message + "\n";
                  error = true;
                }
              }
            }
            
            function check_password(field_name_1, field_name_2, field_size, message_1, message_2) {
              if (form.elements[field_name_1] && (form.elements[field_name_1].type != "hidden")) {
                var password = form.elements[field_name_1].value;
                var confirmation = form.elements[field_name_2].value;
            
                if (password == '' || password.length < field_size) {
                  error_message = error_message + "* " + message_1 + "\n";
                  error = true;
                } else if (password != confirmation) {
                  error_message = error_message + "* " + message_2 + "\n";
                  error = true;
                }
              }
            }
            
            function check_password_new(field_name_1, field_name_2, field_name_3, field_size, message_1, message_2, message_3) {
              if (form.elements[field_name_1] && (form.elements[field_name_1].type != "hidden")) {
                var password_current = form.elements[field_name_1].value;
                var password_new = form.elements[field_name_2].value;
                var password_confirmation = form.elements[field_name_3].value;
            
                if (password_current == '' ) {
                  error_message = error_message + "* " + message_1 + "\n";
                  error = true;
                } else if (password_new == '' || password_new.length < field_size) {
                  error_message = error_message + "* " + message_2 + "\n";
                  error = true;
                } else if (password_new != password_confirmation) {
                  error_message = error_message + "* " + message_3 + "\n";
                  error = true;
                }
              }
            }
            
            function check_form(form_name) {
              if (submitted == true) {
                alert("<{T w='This form has already been submitted. Please press OK and wait for this process to be completed.'}>");
                return false;
              }
            
              error = false;
              form = form_name;
              error_message = "<{T w='Errors have occurred during the processing of your form.\n\nPlease make the following corrections:\n\n'}>";
            
              check_password("password", "confirmation", 1, "<{T w='Your Password must contain a minimum of 1 characters.'}>", "<{T w='The Password Confirmation must match your Password.'}>");
              check_password_new("password_current", "password_new", "password_confirmation", 1, "<{T w='Your Password must contain a minimum of 1 characters.'}>", "<{T w='Your new Password must contain a minimum of 1 characters.'}>", "<{T w='The Password Confirmation must match your new Password.'}>");
            
              if (error == true) {
                alert(error_message);
                return false;
              } else {
                submitted = true;
                return true;
              }
            }
            
            
            
            //--></script>
            <div class="centerColumn" id="passwordForgotten">
            <{if $isinfo}>
            <{if $pass=='true'}><div class="messageStackSuccess larger"><img src="<{$smarty.const.BASEPATH}>/css/img/success.gif" alt="Success" title=" Success " />  <{$passinfo}></div><{else}>
            <div class="messageStackSuccess larger"><img src="<{$smarty.const.BASEPATH}>/css/img/error.gif" alt="error" title=" error " />  <{$passinfo}></div>
            <{/if}>
            <{/if}>
            
            <form name="password_forgotten" action="<{spUrl c=main a=PasswordReset}>?action=process" method="post" onsubmit="return check_form(password_forgotten);">
            
            <fieldset>    
            <legend><{T w='Password Reset'}></legend>
            <div class="alert"><{T w='* Required information'}></div>
            <label for="code" class="inputLabel">Code:    </label><input type="text" value="<{$code}>" name="code" id="code" /><br class="clear"/>
            <label for="email-address" class="inputLabel"><{T w='Email Address'}>:</label>
            <input type="text" name="email_address" size = "41" maxlength= "96" id="email-address" />&nbsp;<span class="alert">*</span><br class="clear" />
            <label class="inputLabel" for="password-new"><{T w='Password'}>:</label>
            <input type="password" name="password" size = "21" maxlength= "40" id="password-new" /><span class="alert">* </span><br class="clear" />
            
            <label class="inputLabel" for="password-confirm"><{T w='Confirm Password'}>:</label>
            <input type="password" name="confirmation" size = "21" maxlength= "40" id="password-confirm" /><span class="alert">*</span><br class="clear" />
            </fieldset>
            
            <div class="buttonRow forward"><input type="image" src="<{$smarty.const.BASEPATH}>/css/img/button_submit.gif" alt="<{T w='Submit the Information'}>" title=" <{T w='Submit the Information'}> " /></div> 
            <div class="buttonRow back"><a href="login.html"><img src="<{$smarty.const.BASEPATH}>/css/img/button_back.gif" alt="<{T w='Back'}>" title=" <{T w='Back'}> " /></a></div>
            </form>
            </div>
                </div>    
                   
                    
            <!--login template end-->
</div>  
<{include file="footer.html"}>
</body>
</html>